// src/app.js

import { Component } from 'react';
import { Provider } from 'react-redux';
import 'taro-ui/dist/style/index.scss'
import models from './models';
import dva from './utils/dva';
import './app.less';

const dvaApp = dva.createApp({
  initialState: {},
  models
});
const store = dvaApp.getStore();
class App extends Component {

  componentDidMount () {}

  componentDidShow () {}

  componentDidHide () {}

  componentDidCatchError () {}

  // this.props.children 是将要会渲染的页面
  render(){
    return(
      <Provider store={store}>
        {this.props.children}
      </Provider>
    )
  }
}

export default App